<script >

import Child from "./Child.vue";
export default {
  components:{
    Child
  },
  methods:{
    handleClick(){
      console.log(this.$refs.myinput.value)//自己的属性
      console.log(this.$refs.mytitle.childTitle)//自己的属性
      this.$refs.mytitle.childTitle="123333333333"
    }
  }
}
</script>

<template>
  <div>
    app-<button @click="handleClick">click</button>
    <input ref="myinput"/>
  </div>
  <div>
    <child ref="mytitle"></child>
  </div>
</template>

<style scoped>

</style>